Ubuntu 16.04
Sponsored Link

Redis : Install
2016/09/06
 
Install Redis which is the In-memory Data structure store Software.
(generally called NoSQL or Key-Value Database)
[1] Install Redis.
root@dlp:~#
apt-get -y install redis-server
[2] Configure basic Settings for Redis.
root@dlp:~#
vi /etc/redis/redis.conf
# line 50: listening port

port 6379
# line 69: listening interface

# localhost only by default

# if you'd like to connect from other Hosts,

# change to the own IP address or to 0.0.0.0

bind 127.0.0.1
# line 123: number of Databases

# database ID is is assgined from 0 to (setting value - 1)

databases 16
# line 147: save caching Datase on Disk

# the default settings below means like follows

# after 900 sec if at least 1 key changed

# after 300 sec if at least 10 keys changed

# after 60 sec if at least 10000 keys changed

# if you'd like to disable this function, comment out all lines fo "save ***" or specify [save ""]

save 900 1
save 300 10
save 60 10000
# line 397: authorization password

requirepass password
# line 509: alternative persistence mode ("yes" means enabled)

# if enabled, Redis loses high performance but get more safety

appendonly no
# line 539: if enabled "appendonly yes" when wirting data on Disk

# "no" means do not fsync by Redis (just let the OS flush the data)

# appendfsync always
appendfsync everysec
# appendfsync no
root@dlp:~#
systemctl restart redis

 
Tweet